package com.iepacj.thkjava.interfaces;

public class Apply {

	private static final String s = "dfdfdfdf";
	
	public static void process(Processor processor, Object s) {
		System.out.println("using processor: " + processor.name());
		System.out.println(processor.process(s));
	}
	
	public static void main(String[] args) {
		process(new Upcase(), s);
		process(new DownCase(), s);
	}
	
}
